#define _CRT_SECURE_NO_WARNINGS
#include"Slist.h"

void TestList1()
{
	
	SLTNode* plist = NULL;
	SListPushBack(&plist, 1);
	/*SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);*/
	//SListPushFront(&plist, 0);
	SListPrint(plist);

	/*SListPrint(plist);
	SListPopFront(&plist);
	SListPrint(plist);
	SListPopBack(&plist);
	SListPrint(plist);*/
	//SLTNode* pos=SListFindOut(plist,1);
	//if (pos)
	//{
	//	SListInsert(&plist, pos, 7);
	//}
	//SListPrint(plist);

	SLTNode* pos = SListFindOut(plist, 1);
	if (pos)
	{
		SListPopErase(&plist, pos);
	}
	SListPrint(plist);
}

int main()
{
	menu();

	TestList1();
	return 0;
}